<div class="grid_16">
    <p>
        <label>Входящие сообщения<small>поступившие от посетителей сайта.</small></label>
    </p>
</div>

<div class="grid_16">
    <table>
        <thead>
            <tr>
                <th>От кого</th>
                <th>Дата</th>
                <th>Текст</th>
                <th colspan="2" width="10%">Действие</th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                    <!--<td colspan="5" class="pagination">
                            <span class="active curved">1</span><a href="#" class="curved">2</a><a href="#" class="curved">3</a><a href="#" class="curved">4</a> ... <a href="#" class="curved">10 million</a>
				</td>-->
            </tr>
        </tfoot>
        <tbody>
            <?php
            foreach ($answer as $key) {
            ?>
                <tr>
                    <td><?php echo $key->last_name; ?></td>
                    <td><?php echo mb_substr($key->date, 0, 10, "UTF-8"); ?></td>
                    <td><?php echo mb_substr($key->message, 0, 65, "UTF-8"); ?>&nbsp;...</td>
                    <td><?php echo '<a href="/admin/qanswer/replay/id/' . $key->question_id . '" class="edit">Ответить</a>'; ?></td>
                    <td><?php echo '<a href="/admin/qanswer/del/id/' . $key->question_id . '" class="delete">Удалить</a>'; ?></td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
